package com.indusfo.spc.mapper;


import com.indusfo.spc.pojo.Client;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientMapper {

    //添加
    int insertClient(Client client);

    //根据ID查找
    List<Client> selectByClientId(Client client);

    //修改
    int updateClient(Client client);

    //查询客户端编号是否存在
    Integer selectClient(Client client);

    //查询总数
    int countClient(Client client);

    //查询所有
    List<Client> selectAll(Client client);

    ////1 启用  2 删除  3停用 客户端设置
    int delteClient(@Param("clientIds") Long[] clientIds, @Param("dataState") Integer dataState);
}